package com.diepu.www.client.hzicbc.proxy.enums;

import org.apache.commons.lang3.StringUtils;

/**
 * 图片ID类型
 * 类描述:图片ID类型 <br/>     
 * 项目名称:parent-hzicbc <br/> 
 * 类名称:PicIdType <br/>     
 * 创建人:xiongxiaotun <br/> 
 * 创建时间:2017年12月6日 下午5:17:45  <br/>   
 * 修改人:xiongxiaotun <br/> 
 * 修改时间: 2017年12月6日 下午5:17:45   <br/>  
 * 修改备注:   <br/> 
 * @version V1.0   <br/>
 */
public enum PicIdType {
	ZX_SQS("0001","【征信】客户征信查询授权书"),
	ZX_SFZZM("0002","【征信】身份证影像正面"),
	ZX_SFZFM("0003","【征信】身份证影像反面"),
	ZX_SQQZZO("0004","【征信】授权书签字照片"),
	ZX_DOC("0005","【征信】客户征信查询授权书+身份证正反面.doc"),
	FQ_ZCDJ_1("0101","【分期】注册登记证1"), // GUO_HU_QI_CHE_ZI_LIAO(24)  GUO_HU_DENG_JI_ZHENG_SHU1(label35) | TI_CHE_QI_CHE_ZI_LIAO(23) TI_CHE_QI_CHE_DENGJIZHENG_1(label3301)
	FQ_ZCDJ_2("0102","【分期】注册登记证2"), //GUO_HU_QI_CHE_ZI_LIAO(24)  GUO_HU_DENG_JI_ZHENG_SHU2(label36) | TI_CHE_QI_CHE_ZI_LIAO(23) TI_CHE_QI_CHE_DENGJIZHENG_2(label3302)
	FQ_ZCDJ_3("0103","【分期】注册登记证3"), 
	FQ_ZCDJ_4("0104","【分期】注册登记证4"),
	FQ_ZJ_BRZM("0201","【分期】【证件】证件本人正面"), // SHEN_FEN_ZHENG_MING(1)  SHEN_FEN_ZHENG_MING_ZHENG_MIAN(label001)
	FQ_ZJ_BRFM("0202","【分期】【证件】证件本人反面"), // SHEN_FEN_ZHENG_MING(1)  SHEN_FEN_ZHENG_MING_FAN_MIAN(label002)
	FQ_ZJ_POZM("0203","【分期】【证件】证件配偶正面"), //PEI_OU_SHEN_FEN_ZHENG_MING(1001) PO_SHEN_FEN_ZHENG_MING_ZHENG_MIAN(label0011)
	FQ_ZJ_POFM("0204","【分期】【证件】证件配偶反面"),//PEI_OU_SHEN_FEN_ZHENG_MING(1001) PO_SHEN_FEN_ZHENG_MING_FAN_MIAN(label0022)
	FQ_HYZM_JHZ("0301","【分期】【婚姻证明】结婚证"), //ZHONG_YAO_YUAN_JIAN(2)  JIE_HUN_ZHENG(label008)
	FQ_HYZM_LHZ("0302","【分期】【婚姻证明】离婚证"),
	FQ_HYZM_DSZM("0303","【分期】【婚姻证明】单身证明"), //ZHONG_YAO_YUAN_JIAN(2) DAN_SHEN_JU_JIE_SHU(label009)
	FQ_GCFP("0401","【分期】购车发票"),//TI_CHE_QI_CHE_ZI_LIAO(23) TI_CHE_QI_CHE_FA_PIAO(label31) | //GUO_HU_QI_CHE_ZI_LIAO(24)  GUO_HU_ER_SHOU_CHE_FA_PIAO(label34)
	FQ_SMZP_1("0501","【分期】上门照片1"), //JIA_FANG(7) JIA_FANG_SHANG_MEN_BAI_FANG(label003)
	FQ_SMZP_2("0502","【分期】上门照片2"),
	FQ_SMZP_3("0503","【分期】上门照片3"),
	FQ_KHQZ_1("0601","【分期】客户签字照片1"),//ZHU_JIE_REN_QIAN_ZI(5) ZHU_JIE_REN_QIAN_ZI_ZHAO_PIAN(label014)
	FQ_KHQZ_2("0602","【分期】客户签字照片2"),
	FQ_HK_HKB_1("0701","【分期】【户口本】户口本1"),//ZHONG_YAO_YUAN_JIAN(2) HU_KOU_BEN_SHOU_YE(label004) 
	FQ_HK_HKB_2("0702","【分期】【户口本】户口本2"),//ZHONG_YAO_YUAN_JIAN(2) HU_KOU_BEN_HU_ZHU_YE(label005)
	FQ_HK_HKB_3("0703","【分期】【户口本】户口本3"),//ZHONG_YAO_YUAN_JIAN(2) HU_KOU_BEN_BEN_REN_YE(label006)
	FQ_HK_HKB_4("0704","【分期】【户口本】户口本4"),
	FQ_SRZM_1("0801","【分期】【收入证明】收入证明1"),//ZHONG_YAO_YUAN_JIAN(2) SHOU_RU_ZHENG_MING_ZHU_JIE_REN(label010)
	FQ_SRZM_2("0802","【分期】【收入证明】收入证明2"), // ZHONG_YAO_YUAN_JIAN(2) SHOU_RU_ZHENG_MING_PEI_OU(label011)
	FQ_QT_ZIP("0901","【分期】其他图片(zip包的格式)"),//YE_WU_FU_JIAN_DA_BAO(25) YE_WU_FU_JIAN_DA_BAO(label39)
	FQ_SPMQSPZL("0902","【分期】视频面签视频资料"),//ZHU_JIE_REN_QIAN_ZI(5) ZHU_JIE_REN_QIAN_ZI_SHI_PIN(label015)
	KK_ZXEDHDSQB("1001","【开卡】专项额度核定申请表"),
	KK_KKSQB_SFZZFM("1002","【开卡】开卡申请表(和身份证正反面合并成一张图片)"),
	/**
	 * 
	 */
	SGHQ_XYKQCZXFQFKYWSQB("9001","【手工获取】信用卡汽车专项分期付款业务申请表"),
	/**
	 * 
	 */
	SGHQ_HT_MDXYKTJFQFK_DYHD("9002","【手工获取】合同：牡丹信用卡透支分期付款/抵押合同（即三合一新合同）"),
	/**
	 * 
	 */
	SGHQ_QCXSHT("9003","【手工获取】汽车销售合同"),
	/**
	 * 
	 */
	SGHQ_GTHKRCRH("9004","【手工获取】共同还款人承诺函"),
	/**
	 * 
	 */
	SGHQ_DBGSDBCRH("9005","【手工获取】担保公司担保承诺函"),
	/**
	 * 
	 */
	SGHQ_SFZ("9006","【手工获取】身份证"),    
	/**
	 * 
	 */
	SGHQ_HKB("9007","【手工获取】户口本"),
	/**
	 * 
	 */
	SGHQ_SRZM("9008","【手工获取】收入申明"),
	/**
	 * 
	 */
	SGHQ_HYZM("9009","【手工获取】婚姻证明"),
	/**
	 * 
	 */
	SGHQ_ZCZM("9010","【手工获取】资产证明 "),
	/**
	 * 
	 */
	SGHQ_SFKPZ("9011","【手工获取】首付款凭证"),
	/**
	 * 
	 */
	SGHQ_GCFP("9012","【手工获取】购车发票"),
	/**
	 * 
	 */
	SGHQ_YHKQGD("9013","【手工获取】银行卡签购单"),
	/**
	 * 
	 */
	SGHQ_CLHGZ("9014","【手工获取】车辆合格证"),
	/**
	 * 
	 */
	SGHQ_ESCPGBG("9015","【手工获取】二手车评估报告"),
	/**
	 * 
	 */
	SGHQ_JDCLBXD("9016","【手工获取】机动车辆保险单"),
	/**
	 * 
	 */
	SGHQ_JFJMQZPLZ("9017","【手工获取】家访及面签照片两张"),
	/**
	 * 
	 */
	SGHQ_TCSXGYXZLLZ("9018","【手工获取】提车时相关影像资料两张"),
	/**
	 * 
	 */
	SGHQ_KHSQSQZZP("9019","【手工获取】客户授权书签字照片"),
	/**
	 * 
	 */
	SGHQ_JDCDJZS_QZ_FYJ("9020","【手工获取】机动车登记证书（权证）复印件"),
	/**
	 * 
	 */
	SGHQ_DLWTSQS("9021","【手工获取】代领委托授权书（三合一）"),
	/**
	 * 
	 */
	SGHQ_GCFQFKSXFWTDKSQS("9022","【手工获取】购车分期付款手续费委托代扣授权书"),
	/**
	 * 
	 */
	INTERVIEW_MIANQIAN_BAOGAO_ZIP("8888","视频面签资料+视频面签报告的zip包");

	/**
	 * 编码
	 */
	private String code;
	/**
	 * 名称
	 */
	private String name;
	private PicIdType(String code, String name){
		this.code = code;
		this.name = name;
	}
	public String getCode() {
		return code;
	}
	public String getName() {
		return name;
	}
	/**
	 * 根据编码获取枚举
	 * @param code
	 * @return
	 */
	public static PicIdType getByCode(String code) {
		if(StringUtils.isBlank(code)) {
			return null;
		}
		for(PicIdType picIdType : values()) {
			if(code.equals(picIdType.getCode())) {
				return picIdType;
			}
		}
		return null;
	}
}
